!function(){var a,o=window.location,r=window.document,t=r.currentScript,l=t.getAttribute("data-api")||new URL(t.src).origin+"/api/event",s=t.getAttribute("data-domain");function c(t,e,n){e&&console.warn("Ignoring Event: "+e),n&&n.callback&&n.callback(),"pageview"===t&&(a=!0)}var u=o.href,d={},w=-1,p=!1,e=!1,v=null,f=0;function n(){var t=r.body||{},e=r.documentElement||{};return Math.max(t.scrollHeight||0,t.offsetHeight||0,t.clientHeight||0,e.scrollHeight||0,e.offsetHeight||0,e.clientHeight||0)}function i(){var t=r.body||{},e=r.documentElement||{},n=window.innerHeight||e.clientHeight||0,e=window.scrollY||e.scrollTop||t.scrollTop||0;return g<=n?g:e+n}function h(){return v?f+(Date.now()-v):f}var g=n(),b=i();function m(){var t=h();e||a||!(w